<%@ page import="org.springframework.beans.factory.config.PlaceholderConfigurerSupport" %><%--
  Created by IntelliJ IDEA.
  User: 13699
  Date: 2021/9/4
  Time: 10:18
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"  isELIgnored="false"%>
<link rel="stylesheet" href="/static/css/bootstrap.css"  media="all">
<link rel="stylesheet" href="/static/css/layui.css"  media="all">
<link rel="stylesheet" href="/static/css/MyStyle.css"  media="all">

<html>
<head>
    <title>Title</title>
</head>

<body>

    <form action="${pageContext.request.contextPath}/user/update"  class="layui-form formMargin" method="post">
        <div><h1>修改信息</h1></div>
        <div >
            <input type="text" name="id" value="${user.id}" hidden="hidden">
        </div>
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <label class="formLabel">user</label>
                <input type="text" name="name" value="${user.name}"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <label class="formLabel">password</label>
                <input type="text" name="password" value="${user.password}" class="layui-input">
            </div>
        </div>
        <div >
            <div class="layui-form-radio">
                <label>男</label>
                <input type="radio" name="sex" value="男" <c:if test="${user.sex=='男'}">checked</c:if> />男
                <label>女</label>
                <input type="radio" name="sex" value="女" <c:if test="${user.sex=='女'}">checked</c:if>>女
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <label class="formLabel">生日</label>
                <input type="date" name="birthday" value="<fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"/>" class="layui-input" id="inputDate">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <label class="formLabel">注册日</label>
                <input type="date" name="registTime" value="<fmt:formatDate value="${user.registTime}" pattern="yyyy-MM-dd"/>" class="layui-input">
            </div>
        </div>
        <div>
            <button type="submit"  class="layui-btn layui-btn-normal">修改</button>
        </div>
    </form>
</body>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="/static/layui.js" charset="utf-8"></script>
<script src="static/js/bootstrap.js"></script>


</html>
